CC := gcc
CFLAGS := -Wall -fopenmp -std=gnu99
LIBS := -lniftiio -lznz
PROGRAMS := pearson threshold

all: clean $(PROGRAMS)

clean: 
	rm -rf *.o $(PROGRAMS)

pearson: pearson.o graf.o
	$(CC) $(CFLAGS) $(LIBS) -o pearson pearson.o graf.o

threshold: threshold.o graf.o
	$(CC) $(CFLAGS) $(LIBS) -o threshold threshold.o graf.o

%.o: %.c 
	$(CC) $(CFLAGS) -c $<

